<?php

/**
 * @Author: Wang Chunsheng 2192138785@qq.com
 * @Date:   2020-03-10 00:14:59
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2020-05-11 10:16:45
 */
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\modules\diandi_shop\models\DdDiandiShopStore */
/* @var $form yii\widgets\MyActiveForm */
?>

<div class="dd-diandi-shop-store-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'title')->textInput(['maxlength' => true]); ?>

    <?= $form->field($model, 'logo')->hint('尺寸:200px*200px')->widget('common\widgets\webuploader\FileInput', []); ?>
    <?= $form->field($model, 'banner')->hint('尺寸:375px*100px')->widget('common\widgets\webuploader\FileInput', []); ?>


    <?= $form->field($model, 'intro')->textInput(['maxlength' => true]); ?>

    <?= $form->field($model, 'address')->textInput(['maxlength' => true]); ?>

    <?= $form->field($model, 'mobile')->textInput(); ?>
    <?= $form->field($model, 'startingPrice')->textInput(); ?>
    <?= $form->field($model, 'shippingDees')->textInput(); ?>

    <?= $form->field($model, 'describe')->textarea(['row' => 3]); ?>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <?= Html::submitButton('保存', ['class' => 'btn btn-success']); ?>
        </div>
    </div>

    <?php ActiveForm::end(); ?>

</div>